package org.flycloud.web.platform.util;

import org.apache.shiro.authc.credential.SimpleCredentialsMatcher;

public class Md5CredentialsMatcher extends SimpleCredentialsMatcher {
	
    protected boolean equals(Object tokenCredentials, Object accountCredentials) {
		String tokenPassword = new String((char[])tokenCredentials);
    	String encryptPassword = MD5.md5Temp(tokenPassword);
		return ((String)accountCredentials).equals(encryptPassword);
    }
	
}
